package k2_oop.p9_collection.demo04;

public class UseTypeClass<A,B,C,D> {

    private A a;
    private C c1;

    public void test1(B b){
        System.out.println("类型b==="+b);
    }

    public C test2(D d){
        System.out.println("参数类型d,返回类型c");
        return c1;
    }


    public static void main(String[] args) {

        UseTypeClass<String,Integer,Double,Boolean> type = new UseTypeClass<>();
        type.a = "hello";
        type.c1 = 1.111;

        type.test1(100);
        System.out.println(type.test2(true));


    }
}
